// 加载图片
#define kTbabarImageName(name) [@"Resource.bundle/tabbar" stringByAppendingPathComponent:name]
#define kGetImageName(name) [@"Resource.bundle/images" stringByAppendingPathComponent:name]

// weak self
#define kWeakSelf __weak __typeof(self) weakSelf = self;

//自定义Log
#ifdef DEBUG
#define MyLog(...) NSLog(__VA_ARGS__)
#else
#define MyLog(...)
#endif

// 屏幕宽度/高度
#define kScreenWidth CGRectGetWidth([UIScreen mainScreen].bounds)
#define kScreenHeight CGRectGetHeight([UIScreen mainScreen].bounds)

// 字符串
#define strIsEmpty(str) ([str isKindOfClass:[NSNull class]] || str == nil || [str length]<1 ? YES : NO)
#define kStringAIsEqualToStringB(A, B) [A isEqualToString:B]
// 颜色
#define kGetColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]


// 判定系统版本。
#define IOS7orLater ([[UIDevice currentDevice].systemVersion doubleValue]>=7.0f) ? (YES):(NO)
#define IOS8orLater ([[UIDevice currentDevice].systemVersion doubleValue]>=8.0f) ? (YES):(NO)
#define IOS9orLater ([[UIDevice currentDevice].systemVersion doubleValue]>=9.0f) ? (YES):(NO)

// 获取当前系统的版本号
#define currentVersion [[[UIDevice currentDevice] systemVersion] floatValue]


#import "UIView+Frame.h"
#import "Masonry.h"
